home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Baron's Profiles of Ameri… Colleges (19th Edition)
/
Baron's Profiles of American Colleges (19th Edition).iso
/
setup.inf
< prev
next >
Wrap
Text File
|
1992-08-29
|
16KB
|
377 lines
SetVariable (TitleName, "Profiles of American Colleges") ; Name of the title
SetVariable (TitleMVB, "paclri") ; Basename of the MVB file
SetVariable (TitleSrcDir, "pac\") ; Source subdirectory of the title
GetCurPath (ViewerSrcDir) ; Source directory of the Viewer
SetVariable (ViewerSize, 1 000 000) ; Size of the Viewer files that will
; be copied over (measured in bytes)
SetVariable (ViewerDestDir, "C:\VIEWER\") ; Destination directory for
; the Viewer. Set default
; here.
WindowTitle (<TitleName> " Setup")
; Set the instruction text used in the initial instructions window.
; Add Help instructions if the file SETUP.HLP exists.
;
SetVariable (InitialInstructions,
"Click on {\b OK} or press {\b Enter} to continue. "
"To abort the setup, click on the {\b Exit} button at the "
"bottom right corner of the screen, or press {\b F3}. ")
IfFileExistsGoto ("SETUP.HLP", AddHelpInstructions)
Goto (DisplayInitialMessage)
AddHelpInstructions:
SetVariable (InitialInstructions,
<InitialInstructions> "You can always obtain help by "
"clicking on the {\b Help} button or pressing {\b F1}. ")
; Display the initial message.
;
DisplayInitialMessage:
DisplayMessage (
"The Setup program will install " <TitleName> " and the Multimedia "
"Viewer.",
<InitialInstructions>)
;
GetFromWinIni (ViewerDestDirTemp,
"Multimedia Viewer", "ViewerPath", "Undefined")
IfEqualGoto (<ViewerDestDirTemp>, "Undefined", PromptViewerDestDir)
SetVariable (ViewerDestDir, <ViewerDestDirTemp>)
AskAgain:
PromptViewerDestDir:
PromptPath (ViewerDestDir, <ViewerDestDir>,
"Where should Setup install the Multimedia Viewer?",
"Modify the default path if necessary, and then click on {\b OK} or "
"press {\b Enter} to continue. ",
"The path is currently not valid. You must specify a drive "
"letter, a colon, and a directory from the root of the drive. ")
; Don't allow Viewer to be installed in the Windows directory
;
GetWinPath (WinPath)
GetWinSystemPath (SystemPath)
IfNotEqualGoto (<ViewerDestDir>, <WinPath>, CheckSpace)
DisplayMessage (
"You cannot install the Viewer into the Windows directory. "
"Please enter another directory.",
"Click on {\b OK} or press {\b Enter} to enter another directory "
"for Viewer.")
Goto (PromptViewerDestDir)
CheckSpace:
GetSpaceAvailable (SpaceAvailable, <ViewerDestDir>)
IfLowerGoto (<ViewerSize>, <SpaceAvailable>, ViewerDestDirOK)
AskYesNo (Prompt, "Yes",
"There may not be enough space to install the Multimedia Viewer. "
"Would you like to enter a new path for the files? ",
"Click on {\b Yes} or press {\b 'Y'} to enter a new path for the "
"Multimedia Viewer files.\par "
"Click on {\b No} or press {\b 'N'} to continue anyway.\par "
"Click on the {\b Exit} button or press {\b F3} to exit Setup. "
"You may wish to exit Setup and make some more space on your hard "
"disk. Run Setup again when there is enough space on your hard "
"disk. ")
IfEqualGoto (<Prompt>, "Yes", PromptViewerDestDir)
ViewerDestDirOK:
AskYesNo (AskAgain, "No",
"Would you like to change anything before proceeding with "
"the installation?",
"Click on {\b Yes} or press {\b 'Y'} to reenter options.\par "
"Click on {\b No} or press {\b 'N'} to proceed with installation. ")
IfEqualGoto (<AskAgain>, "Yes", AskAgain)
MakePath (<ViewerDestDir>)
OpenCopyProgress (
"Setup is copying the Multimedia Viewer runtime files.",
"Please wait while Setup is copying files.")
IfFileExistsGoto (<ViewerDestDir> "FTENGINE.DLL", DontCopyFTENGINE)
IfSysFileExistsGoto ("FTENGINE.DLL", DontCopyFTENGINE)
CopyFile ("FTENGINE.DLL", <ViewerDestDir> "FTENGINE.DLL", 41000)
DontCopyFTENGINE:
IfFileExistsGoto (<ViewerDestDir> "FTUI.DLL", DontCopyFTUI)
IfSysFileExistsGoto ("FTUI.DLL", DontCopyFTUI)
CopyFile ("FTUI.DLL", <ViewerDestDir> "FTUI.DLL", 54000)
DontCopyFTUI:
;IfFileExistsGoto (<ViewerDestDir> "MMP.DLL", DontCopyMMP)
;IfSysFileExistsGoto ("MMP.DLL", DontCopyMMP)
;CopyFile ("MMP.DLL", <SystemPath> "MMP.DLL", 10000)
;DontCopyMMP:
IfFileExistsGoto (<ViewerDestDir> "MVAFF.DLL", DontCopyMVAFF)
IfSysFileExistsGoto ("MVAFF.DLL", DontCopyMVAFF)
CopyFile ("MVAFF.DLL", <ViewerDestDir> "MVAFF.DLL", 39000)
DontCopyMVAFF:
IfFileExistsGoto (<ViewerDestDir> "MVAPI.DLL", DontCopyMVAPI)
IfSysFileExistsGoto ("MVAPI.DLL", DontCopyMVAPI)
CopyFile ("MVAPI.DLL", <ViewerDestDir> "MVAPI.DLL", 7000)
DontCopyMVAPI:
IfFileExistsGoto (<ViewerDestDir> "MVAUDDLG.DLL", DontCopyMVAUDDLG)
IfSysFileExistsGoto ("MVAUDDLG.DLL", DontCopyMVAUDDLG)
CopyFile ("MVAUDDLG.DLL", <ViewerDestDir> "MVAUDDLG.DLL", 38000)
DontCopyMVAUDDLG:
IfFileExistsGoto (<ViewerDestDir> "MVAUDIO.DLL", DontCopyMVAUDIO)
IfSysFileExistsGoto ("MVAUDIO.DLL", DontCopyMVAUDIO)
CopyFile ("MVAUDIO.DLL", <ViewerDestDir> "MVAUDIO.DLL", 8000)
DontCopyMVAUDIO:
IfFileExistsGoto (<ViewerDestDir> "MVBMP.DLL", DontCopyMVBMP)
IfSysFileExistsGoto ("MVBMP.DLL", DontCopyMVBMP)
CopyFile ("MVBMP.DLL", <ViewerDestDir> "MVBMP.DLL", 39000)
DontCopyMVBMP:
;IfFileExistsGoto (<ViewerDestDir> "QKHOOK.DLL", DontCopyQKHOOK)
;IfSysFileExistsGoto ("QKHOOK.DLL", DontCopyQKHOOK)
;CopyFile ("QKHOOK.DLL", <ViewerDestDir> "QKHOOK.DLL", 6000)
;DontCopyQKHOOK:
;IfFileExistsGoto (<ViewerDestDir> "QUICKEYS.EXE", DontCopyQUICKEYS)
;IfSysFileExistsGoto ("QUICKEYS.EXE", DontCopyQUICKEYS)
;CopyFile ("QUICKEYS.EXE", <ViewerDestDir> "QUICKEYS.EXE", 15000)
;DontCopyQUICKEYS:
IfFileExistsGoto (<ViewerDestDir> "VIEWER.EXE", DontCopyVIEWER)
IfSysFileExistsGoto ("VIEWER.EXE", DontCopyVIEWER)
CopyFile ("VIEWER.EXE", <ViewerDestDir> "VIEWER.EXE", 250000)
DontCopyVIEWER:
;; CloseCopyProgress ()
;; --------------------
;; This command closes the copy progress bar.
CloseCopyProgress ()
;; OpenProgmanProgress (Message, Instructions)
;; -------------------------------------------
;; This command begins a Program Manager installation section.
;; This command will put up a progress bar with the message 'Message'
;; and the instructions 'Instructions'. Following this command, only
;; the commands 'SetProgressBarMsg', 'OpenProgmanGroup', 'ErrorExit',
;; 'AddProgmanItem', 'Goto', 'IfEqualGoto', 'IfNotEqualGoto',
;; 'IfLowerGoto', 'IfHigherGoto', 'IfFileExistsGoto',
;; 'IfSysFileExistsGoto', and 'Pause' are
;; allowed until the 'CloseProgmanProgress' command is reached. An
;; error is reported and Setup is aborted if any other commands are
;; encountered while the progress bar is displayed.
; Begin adding Progam Manager groups
;
OpenProgmanProgress (
"Setup is adding Program Manager groups.",
"Please wait while Setup adds {\b Program Manager} groups".)
;; OpenProgmanGroup (Group[, DeleteFlag])
;; ---------------------------------------
;; This command will set up a DDE conversation with the Program
;; Manager and open the program group entitled 'Group'. If the
;; optional string 'Delete' is specified and is equal to "Delete",
;; then the specified group will be deleted if it exists, before it is
;; created. Normally this Delete flag is specified to create a new
;; program group, and is omitted to add to an existing group.
;;
;; The progress bar will display the words "Opening" followed by the
;; name of the ProgMan group. If OpenProgmanGroup fails then no error